import { Login, Dashboard, Basic, Home, City, Optimize } from 'views'
import { RouteObject } from 'react-router-dom'

const routes: RouteObject[] = [
  {
    path: '/basic',
    element: <Basic />,
    children: [
      {
        path: 'dashboard',
        // index: true,
        element: <Dashboard />,
      },
      {
        path: 'home',
        element: <Home />,
      },
    ],
  },
  {
    path: '/city',
    element: <City />,
  },
  {
    path: '/opt',
    element: <Optimize />,
  },
  {
    path: '/',
    element: <Login />,
  },
]

export { routes }
